package com.dalin.system.service;

import com.dalin.system.pojo.entity.DbManagementEntity;
import com.dalin.framework.vos.ResResult;
import com.dalin.system.pojo.request.DbManagementRequest;
import com.dalin.system.pojo.request.DbTableReq;

import java.util.List;

public interface DbManagementService {
    ResResult listPageDbManagements(DbManagementRequest req);
    DbManagementEntity getDbManagementById(int id);
    Long addOrUpdateDbManagement(DbManagementEntity dbManagement);
    Long deleteDbManagement(Long id);
    void deleteDbManagements(List<String> ids);

    /**
     * 连接测试
     * @param req
     * @return
     */
    ResResult connectTest(DbManagementRequest req);

    ResResult addTable(DbTableReq req);
}